<%--
  @desc:账号信息修改
  @author: chenw
  @create: 2014-4-29 下午 16:03
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form id="upd_pwd" method="post" action="<c:url value='/profile/setting'/>" class="pageForm required-validate" onsubmit="return validateCallback(this,callbackForUpdatePwd);">
    <div class="pageFormContent" layoutH="56">
        <p>
            <label for="txt_old_pwd">原始密码：</label>
            <input type="password" id="txt_old_pwd" name="oldPwd" class="required" size="20" alt="请输入原始密码！"/>
        </p>

        <p>
            <label for="txt_new_pwd">新密码：</label>
            <input type="password" id="txt_new_pwd" name="password" class="required" size="20" alt="请输入新密码！"/>
        </p>

        <p>
            <label for="txt_confirm_pwd">确认密码：</label>
            <input type="password" id="txt_confirm_pwd" name="confirmPwd" class="required" equalTo="#txt_new_pwd" size="20" alt="请输入确认密码！"/>
        </p>
    </div>
    <div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
            <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
        </ul>
    </div>
</form>
<script type="text/javascript">
    function callbackForUpdatePwd(resp, st, xhr) {
        if (resp && resp.succ) {
            alertMsg.info("密码更新成功！");
            $.pdialog.closeCurrent();
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
</script>
